#ifndef _OI_PLSCANNERCORE_USERMANAGEDLG_H_
#define _OI_PLSCANNERCORE_USERMANAGEDLG_H_

#include "PLScannerCore/OiPLScannerCore.hpp"

namespace Oi
{
    namespace PLScannerCore
    {
        class OI_PLSCANNER_CORE_API UserDlg : public QDialog
        {
            Q_OBJECT

        public:
            UserDlg(QWidget * parent = nullptr);

        public:
            void closeEvent(QCloseEvent * evt);

        public slots:
            void onInsert();
            void onRemove();
            void onEdit();
            void onEditCompleted();
            void onLogin();
            void onSwith();
            void onPermission();

        public:
            static bool callLogin(QWidget *parent);

        private:
            OI_DISABLE_COPY(UserDlg);
            OI_DECLARE_IMPL(UserDlg);
        };
    }
}


#endif